/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ExplorerPanel.java
 *
 * Created on 22/05/2011, 14:43:23
 */
package rdr.xfiles.explorer2;

import rdr.xfiles.model.filesystem.FileSystemModel;

/**
 *
 * @author ruanor
 */
public class ExplorerPanel extends javax.swing.JPanel {

    FileSystemModel model;
    
    /** Creates new form ExplorerPanel */
    public ExplorerPanel() {
        initComponents();
        model = new FileSystemModel();
        this.directoryTreeViewPanel.setModel(model);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        directoryTreeViewPanel = new rdr.xfiles.explorer2.DirectoryTreeViewPanel();

        directoryTreeViewPanel.setName("directoryTreeViewPanel"); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(directoryTreeViewPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(233, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(directoryTreeViewPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private rdr.xfiles.explorer2.DirectoryTreeViewPanel directoryTreeViewPanel;
    // End of variables declaration//GEN-END:variables

    public void updateModel(String currDir) {
        //this.dirController.setCurrentDirectory(currDir);
    }
}
